<template>
  <div class="dashboard-container">
    <el-row :gutter="24">
      <el-col :xs="{span: 24}" :sm="{span: 12}" :md="{span: 12}" :lg="{span: 12}" :xl="{span: 12}" style="margin-bottom:30px;">
        <TodoList />
      </el-col>
      <el-col :xs="{span: 24}" :sm="{span: 12}" :md="{span: 24}" :lg="{span: 12}" :xl="{span: 12}" style="margin-bottom:30px;">
        <Shortcut />
        <CountDown style="margin-top:10px;" />
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import Shortcut from './components/Shortcut'
import CountDown from './components/CountDown'
import TodoList from './components/TodoList'

export default {
  name: 'Dashboard',
  components: { CountDown, Shortcut, TodoList },
  computed: {
    ...mapGetters(['nickname', 'uid'])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    padding: 24px;
    height: calc(100vh - 84px);
    background-color: rgb(240, 242, 245);
    position: relative;
  }
}
</style>
